home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / linux / atari / source / source.lzh / atari-linux-0.01pl3 / m68k / Makefile < prev    next >
Encoding:
Makefile  |  1994-06-06  |  1008 b   |  45 lines

  1. # Makefile for 680x0 Linux m680x0 source directory
  2. #
  3. # Copyright 1993 by Hamish Macdonald
  4. #
  5. # This file is subject to the terms and conditions of the GNU General Public
  6. # License.  See the file "README.legal" in the main directory of this archive
  7. # for more details.
  8.  
  9. include ../MakeVars
  10.  
  11. OBJS    = machasm.o sys_call.o traps.o ints.o signal.o ptrace.o
  12.  
  13. arch.o: $(OBJS)
  14.     $(LD) -r -o arch.o $(OBJS)
  15.  
  16. machasm.o sys_call.o: assyms.h
  17.  
  18. assyms.h: ../include/linux/sched.h ../include/linux/mm.h \
  19.       ../include/linux/param.h ../include/linux/signal.h \
  20.       ../include/linux/bootinfo.h ../include/linux/ataritypes.h
  21.     @echo "You need to remake assyms.h (make do_assyms.h)"
  22.     exit 1
  23.  
  24. do_assyms.h: gensyms
  25.     ./gensyms > assyms.h
  26.  
  27. gensyms: gensyms.o
  28.     $(HOSTCC) $(HOSTFLAGS) -o $@ $<
  29.  
  30. gensyms.o: gensyms.c
  31.     $(HOSTCC) $(HOSTFLAGS) -c $< -o $@
  32.  
  33. clean:
  34.     $(RM) $(RMFLAGS) *.o gensyms
  35.  
  36. dep:
  37.     $(CPP) -M $(INCFLAGS) *.c > .depend
  38.  
  39. #
  40. # include a dependency file if one exists
  41. #
  42. ifeq (.depend,$(wildcard .depend))
  43. include .depend
  44. endif
  45.